package org.clockworkmages.games.anno1186.scripting.tools;

public class SituationScriptBuilder
		extends ScriptBuilder {

	public SituationScriptBuilder() {
		super(new StringBuffer("situation"));
	}

	public SituationScriptBuilder(StringBuffer sb, BuilderWrapper parent) {
		super(sb, parent);
		sb.append("situation");
	}

	public ScriptBuilder addState(String stateId) {
		sb.append(".addState('" + stateId + "')");
		return this;
	}

	public ScriptBuilder hasState(String stateId) {
		sb.append(".hasState('" + stateId + "')");
		return this;
	}

	public ScriptBuilder getState(String stateId) {
		sb.append(".getState('" + stateId + "')");
		return this;
	}

	public ScriptBuilder setState(String stateId, String value) {
		sb.append(".setState('" + stateId + "','" + value + "')");
		return this;
	}

}
